package com.zf.shuashua.ui.mine.notice;

import com.vise.xsnow.http.callback.ACallback;
import com.zf.shuashua.api.HttpData;
import com.zf.shuashua.bean.BaseData;

/**
 * 消息通知标记已读
 */
public class NoticeMarkManager {

    //点赞通知
    public static final String TYPE_PRAISE = "praise";
    //评论通知
    public static final String TYPE_COMMENT = "comment";
    //关注通知
    public static final String TYPE_FOLLOW = "follow";
    //小助手通知
    public static final String TYPE_NOTICE = "notice";

    private static NoticeMarkManager instance;

    private NoticeMarkManager() {

    }

    public static NoticeMarkManager getInstance() {
        if (null == instance) {
            synchronized (NoticeMarkManager.class) {
                if (null == instance) {
                    instance = new NoticeMarkManager();
                }
            }
        }
        return instance;
    }

    public void markRead(String type) {
        HttpData.getInstance().markRead(type, new ACallback<BaseData>() {
            @Override
            public void onSuccess(BaseData data) {

            }

            @Override
            public void onFail(int errCode, String errMsg) {
            }
        });
    }

}
